-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow skip cancel if named job in progress #107
base: main
Are you sure you want to change the base?
Conversation
This is not a democracy really, but I do want to register in this as well - this happens to me in one repo with one specific job and right now I'm just careful with what I run at the same time :-) |
Thanks for the PR! If this gets a few upvotes and others want it, we can merge it. I'll review soon 👍 |
This would be really great to have! |
workflow_run_id: id, | ||
jobs: jobs.filter( | ||
({ status, name }: any) => | ||
status === 'in_progress' && disqualifying_jobs.includes(name), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use Job ID instead of Job Name? Or at least make both work like we do for workflow name/id?
: [] | ||
).filter(workflow => workflow.jobs.length > 0); | ||
|
||
let workflow_runs_to_cancel = [...workflow_runs]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this cloned?
This would be amazing to have, I was looking to implement exactly this. |
👋
I have a use case where if a named job is currently running the workflow should not be cancelled (deploying to S3). I figured I would create a PR in case anyone else sees value in the functionality.
Also open to any input, first PR for a github action.
Awesome work btw!